home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
- Path: phcoms4.seri.philips.nl!panther!baynes
- From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
- Subject: Re: Why can't gcc find some object files in archive libraries?
- Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
- Message-ID: <Dpp3xy.n1n@ukpsshp1.serigate.philips.nl>
- Date: Thu, 11 Apr 1996 11:29:56 GMT
- References: <markj.829166983@msn>
- Organization: Philips Semiconductors, Southampton, UK
- X-Newsreader: TIN [version 1.2 PL2]
- Followup-To: gnu.gcc,gnu.g++,comp.sys.hp.hpux,gnu.gcc.help,comp.lang.c
-
- Mark Johnson (markj@msn.ustc.vlsi.com) wrote:
- : I've been trying to figure out why while running g++ on hpux 9.05, for
- : certain sources, the linker misses the object file. I've noticed this
- : with several *.o files in archived libraries. But I've done a number
- : of test cases and I'm sure that the linker is just overlooking the
- : object file for some unknown reason.
-
- : One of the object files is xmalloc.o in the libiberty.a library. If I
- : extract xmalloc.o from the library and put it in the object list
- : everything compiles fine. But if I don't put the actual *.o file on
- : the object list the linker won't find it. If I explicitely put the
- : library on my path it still won't find it. If I take the *.o file and
- : make a new archive library with some bogus name it still won't find
- : it. I've put another *.o file in the library just to make sure that
- : the linker is reading the library. It is.
-
- What order do you have for the files on the command line? If the archive
- containing xmalloc comes before the object file that calls xmalloc then
- the linker will not attempt to read xmalloc from the archive.
-
- --
- Stephen Baynes baynes@ukpsshp1.serigate.philips.nl
- Philips Semiconductors Ltd
- Southampton My views are my own.
- United Kingdom
- Are you using ISO8859-1? Do you see ⌐ as copyright, ≈ as division and ╜ as 1/2?
-